All Questions
Tagged with circular-dependencypython
3 questions
3votes
1answer
174views
How to structure python modules/packages according to dependecy inversion
If I am working on a project, say it has this file structure: car/ body/ __init__.py doors.py bonnet.py engine/ cyclinderhead/ __init__.py pistons.py ...
0votes
0answers
471views
Python circular dependency
I have two classes AST and ASTNode for working with some tree-like data. Both these classes have networkx graph as a field and a node id (integer). For AST this id refers to the root of a tree. These ...
-2votes
1answer
764views
Base Class, with method that returns Derived Class. design flaw?
I'm writing a Math equation solver in python (for fun). The first design that came to my mind: Expression: base class for every item in an equation (maybe bad name). BinaryExpression extends ...